package com.gxp.system.service.impl;

import com.gxp.common.core.text.Convert;
import com.gxp.system.domain.ZknjModSolv;
import com.gxp.system.mapper.ZknjModSolvMapper;
import com.gxp.system.service.IZknjModSolvService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 方法溶剂关联Service业务层处理
 *
 * @author zh
 * @date 2024-07-23
 */
@Service
public class ZknjModSolvServiceImpl implements IZknjModSolvService
{
    @Autowired
    private ZknjModSolvMapper zknjModSolvMapper;

    /**
     * 查询方法溶剂关联
     *
     * @param modId 方法溶剂关联主键
     * @return 方法溶剂关联
     */
    @Override
    public List<ZknjModSolv> selectZknjModSolvByModId(Long modId)
    {
        return zknjModSolvMapper.selectZknjModSolvByModId(modId);
    }

    /**
     * 查询方法溶剂关联列表
     *
     * @param zknjModSolv 方法溶剂关联
     * @return 方法溶剂关联
     */
    @Override
    public List<ZknjModSolv> selectZknjModSolvList(ZknjModSolv zknjModSolv)
    {
        return zknjModSolvMapper.selectZknjModSolvList(zknjModSolv);
    }

    /**
     * 新增方法溶剂关联
     *
     * @param zknjModSolv 方法溶剂关联
     * @return 结果
     */
    @Override
    public int insertZknjModSolv(ZknjModSolv zknjModSolv)
    {
        return zknjModSolvMapper.insertZknjModSolv(zknjModSolv);
    }

    /**
     * 修改方法溶剂关联
     *
     * @param zknjModSolv 方法溶剂关联
     * @return 结果
     */
    @Override
    public int updateZknjModSolv(ZknjModSolv zknjModSolv)
    {
        return zknjModSolvMapper.updateZknjModSolv(zknjModSolv);
    }

    /**
     * 批量删除方法溶剂关联
     *
     * @param modIds 需要删除的方法溶剂关联主键
     * @return 结果
     */
    @Override
    public int deleteZknjModSolvByModIds(String modIds)
    {
        return zknjModSolvMapper.deleteZknjModSolvByModIds(Convert.toStrArray(modIds));
    }

    /**
     * 删除方法溶剂关联信息
     *
     * @param modId 方法溶剂关联主键
     * @return 结果
     */
    @Override
    public int deleteZknjModSolvByModId(Long modId)
    {
        return zknjModSolvMapper.deleteZknjModSolvByModId(modId);
    }
}
